#ifndef FRMUSERINFO_H
#define FRMUSERINFO_H
#include "userlist.h"
#include "UsedHead.h"

#include <QDialog>

namespace Ui {
class frmUserInfo;
}

class frmUserInfo : public QDialog
{
    Q_OBJECT

public:
    void setId(int id);
    int getId();
    explicit frmUserInfo(QWidget *parent = nullptr);
    ~frmUserInfo();

private slots:
    void on_btnChange_clicked();

    void on_btnDelete_clicked();

private:
    bool judge(string name, string password);
    UserList ul;
    int id;
    Ui::frmUserInfo *ui;
};

#endif // FRMUSERINFO_H
